Completed
Pull Request — master (#9)
by Flo
02:37
created

ns.controller.documentationAction   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
cc 1
nc 1
rs 9.4285
nop 1
1
(function(http) {
2
3
    'use strict';
4
5
    var ns   = faulancer.namespace('docs');
0 ignored issues
show
Bug introduced by
The variable faulancer seems to be never declared. If this is a global, consider adding a /** global: faulancer */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
6
7
    ns.controller = {
8
9
        errorAction: function() {
10
11
            document.getElementById('mainContent').innerHTML = '';
12
13
        },
14
15
        documentationAction: function() {
16
17
            var res = '/contents/landingpage.html';
18
19
            http.get(res, function(response) {
20
21
                document.getElementById('mainContent').innerHTML = response;
22
23
            }, function() {
24
                console.log('Error');
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
25
            });
26
27
        },
28
29
        contactAction: function() {
30
31
32
33
        }
34
35
    };
36
37
})(faulancer.namespace('docs.routing.http'));
0 ignored issues
show
Bug introduced by
The variable faulancer seems to be never declared. If this is a global, consider adding a /** global: faulancer */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...